<?php
/**
 * Created by yuxianjun001@icloud.com.
 * User: wuchen
 * Date: 2019/4/12
 * Time: 11:46
 */

namespace App\Http\Controllers\Api\Advertising;


use App\Http\Controllers\Common\MyController;
use App\Services\Advertising\AdvService;
use Illuminate\Http\Request;
/**
 * 广告控制器
 * Class advController
 * @package App\Http\Controllers\Api\Advertising
 */
class advController extends MyController
{
    private $service;

    public function __construct()
    {
        $this->service = new AdvService();
    }

    /**
     * 新增广告
     * @param Request $request
     * @return mixed
     */
    public function add(Request $request)
    {
        return $this->service->add($request);
    }

    /**
     * 编辑广告
     * @param Request $request
     * @return mixed
     */
    public function edit(Request $request)
    {
        return $this->service->edit($request);
    }

    /**
     * 删除广告
     * @param Request $request
     * @return mixed
     */
    public function del(Request $request)
    {
        return $this->service->del($request);
    }

    /**
     * 广告列表
     * @param Request $request
     * @return mixed
     */
    public function list(Request $request)
    {
        return $this->service->list($request);
    }


}